package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 采购退货单
 *
 * @author wxw
 * @email
 * @date 2020-07-11 13:22:39
 */

@Data
@TableName("unimall_purchase_order_return")
public class PurchaseOrderReturnDO extends SuperDO {

    /**
     * 退货单id
     */
    /**
     * 编号
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 退货数量
     */
    @TableField("order_goods_return_count")
    private Float orderGoodsReturnCount;
    /**
     * 退货单金额
     */
    @TableField("order_return_amount")
    private Long orderReturnAmount;
    /**
     * 退货原因
     */
    @TableField("order_return_info")
    private String orderReturnInfo;
    /**
     * 退货单时间
     */
    @TableField("order_return_time")
    private Date orderReturnTime;
    /**
     * 状态(0:待审核 1:已通过 2:驳回)
     */
    @TableField("order_return_state")
    private Integer orderReturnState;
    /**
     * 退货完成时间
     */
    @TableField("order_return_finish_time")
    private Date orderReturnFinishTime;
    /**
     * 操作者id
     */
    @TableField("admin_id")
    private Integer adminId;

    @TableField("admin_realname")
    private String adminRealname;
    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;
    /**
     * 客户类型(1:供应商 2:门店)
     */
    @TableField("customer_type")
    private Integer customerType;
    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;
    /**
     * 添加时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 更新时间
     */
    @TableField("gmt_update")
    private Date gmtUpdate;


    /**
     * 审核人
     */
    @TableField("audit_admin_id")
    private Long auditAdminId;
    /**
     * 审核真实姓名
     */
    @TableField("audit_admin_realname")
    private String auditAdminRealname;

    /**
     * 审核真实姓名
     */
    @TableField("audit_comment")
    private String auditComment;

    /**
     * 入库单号
     */
    @TableField("purchase_order_no")
    private String purchaseOrderNo;


    @TableField(exist = false)
    private String customerName;
    @TableField(exist = false)
    private List<PurchaseOrderReturnGoodsDO> skus;
}
